<include file="public@header" />
<link rel="stylesheet" type="text/css" href="__STATIC__/layui/css/layui.css">
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('project_upkeep/index',array('project_id'=>input('project_id')))}">维保计划列表</a></li>
			<li class="active"><a href="{:url('project_upkeep/add',array('project_id'=>input('project_id')))}">添加维保计划</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20 layui-form" action="{:url('project_upkeep/add')}">
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>维保人员
				</label>
				<div class="col-md-3 col-sm-6">
					<select class="form-control" name="staff_id" lay-search="">
			          	<option value="">请选择员工</option>
			          	<foreach name="staff_list" item="vo">
			          		<option value="{$vo.id}">{$vo.name}</option>
			          	</foreach>
			        </select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>计划维保日期
				</label>
				<div class="col-md-3 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" name="plan_date" autocomplete="off">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="project_id" value="{:input('project_id')}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
	<script src="__STATIC__/layui/layui.js"></script>
	<script type="text/javascript">
		layui.use(['form'], function(){
			var form = layui.form;
		});
	</script>
</script>
</body>
</html>